package kr.hkit.powerjava.chapter08.work;
/* PROGRAMMING 01 Circle클래스를 설계하고 테스트하라 */
class Circle1{
	int r;
	int cx;
	int cy;
	public int getR() {
		return r;
	}
	public void setR(int r) {
		this.r = r;
	}
	public int getCx() {
		return cx;
	}
	public void setCx(int cx) {
		this.cx = cx;
	}
	public int getCy() {
		return cy;
	}
	public void setCy(int cy) {
		
		this.cy = cy;
	}
	double area(){
		return r * r * 3.14;
	}
	public String toString() {
		return "Circle [r=" + r + ", cx=" + cx + ", cy=" + cy + ", area()="
				+ area() + "]";
	}
}// end of Circle Class
public class CircleTestMain {
	public static void main(String[] args) {
		Circle1 c1 = new Circle1();
		c1.setR(5);
		c1.setCx(10);
		c1.setCy(8);
		System.out.println(c1);
	}
}// end of CircleTestMain Class
